Added checking for null queries
Changed: UserProfile.aspx.cs