Fixed issue where .../messages/0 returned all messages instead of message ID=0