Improve users.User_data._on_311 ()

Prevent crashes