Possible fix to errors in Issue 12

When no session was loaded, the flot javascript was still trying to load variables from PHP. I wrapped this section in a if/else case to take care of the problem (hopefully).