Fix try_get_profile to work around Django get_profile deprecation

`try_get_profile()` tries to use `user.profile` after trying `user.get_profile()`.