Undefined Set Bug

One of my previous commits added a check to see if a set is open for Problem.pm but it broke the Undefined Set and viewing a problem from the library browser. This fixes that. 

Test by viewing a problem via the library browser.