Fix for php.log spewing errors about flashmessages