fix error handling for bookmarklet; prevent flash.message appearing again after the problem has been resolved