MDL-44822 assignfeedback_editpdf: Stop test generation in is_enabled()

This change also moves one of the checks in test_gs_path. If
generateimage is false, there's no need to stat for the fixture file.