Updated fix for null pointer exception in profile page. And new way of
building person object.