fix bug in conversations view causing server error

fix for the bug @Flaburgan reported in #4622