fix broken query from 134f69460a
messages: fix handling of deleted messages (deleted attribute could be removed as well, left it there in order not to break something)
Merge branch 'master' of github.com:studip/studip-rest.ip