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 then to disconnect. Just a small fix attached.