Null pointer exception bugfix

**Summary:** There was a null pointer exception in the ProfilePage when accessing an inexisting profile.