Improved checking for isProfilePicture

Before this fix it would also match on the servers response for setting the profile picture.