Change session assert to conditional

When checking for current project session, you might get back
boost::none.  The code was asserting on this case.  Now instead of
asserting, we check the condition.
Merge branch 'PAT-EC2' of https://github.com/NREL/OpenStudio into PAT-EC2