Propagate get_user_model exception from get_user

Fixes #21439