Returned error if populator could not populate data

If populator isn't able to populate the data, the create method still goes ahead and does an insert into the database with null values. thats unnecessary.