Fix a traceback with broken roster items

only happens with buggy servers (hello ejabberd)