Fix example code in README.md

The console methods `console_messages` and `error_messages` each return
an array of messages.