Bug with user without resource

Hello,
When a user tried to login without resource ejabberd tries to create one during binding, but "[randoms:get_string() | tuple_to_list(now())]" does not give a proper iolist, causing the to disconnect. Just a smal fix attached