Fixing a lot of failures when a new user gets created due passing wrong parameter.
Additional check to see if we are dealing with a WP_Post object.