Fix internal server error in with flash_messages.error(request, msg) call

Also occurs in 0.7.1

The method signature is `FlashMessages.error(messages)`, no request should be passed.