fixes issues #589 - populate_username & custom User model without first_name/last_name fields 

Fix from issue #559. I added an if to ignore first_name and last_name attributes when they are null for generating an username using the method generate_unique_username