Added null check for get_users_for_view