Fixed a bug in setMaxQuestionVisibility where loading a diagnostic form would disable it for scoring.