only remove Problem from session (on exit from dev page) if quiz

This fixes a bug where the "Save and test" button on the
EditProblemPage only worked once because the DevelopmentPage's
PageBackHandler was unconditionally removing the Problem from
the session.  Changed it to only do this if a QuizInProgress
object is present in the session.