Surround the getter for the flashmessage attribute in try-catch