Avoid creation of UserData in case of invalid ID