Check if get_user_model().objects has the 'get_by_natural_key' attribute and act accordingly;