Warn the user when closing/reloading page if the report is being saved

fixes #127 
@dknochen Removing the if causes the test suite to regress. This means that from no one any illegal actions in the test suite are caught