Allowed the id to be undef. And modified the populate method not to
populate undefined values