populate_from_dict: use type for hasattr check
populate_from_dict: use type for hasattr check

with lazy-loaded relationships it seems that the hasattr check on the
instance doesn't work in some cases

mic4ael/indico,mvidalgarcia/indico,indico/indico,mic4ael/indico,pferreir/indico,ThiefMaster/indico,mvidalgarcia/indico,DirkHoffmann/indico,mic4ael/indico,mic4ael/indico,pferreir/indico,mvidalgarcia/indico,pferreir/indico,OmeGak/indico,mvidalgarcia/indico,ThiefMaster/indico,indico/indico,pferreir/indico,indico/indico,DirkHoffmann/indico,indico/indico,OmeGak/indico,OmeGak/indico,ThiefMaster/indico,DirkHoffmann/indico,ThiefMaster/indico,DirkHoffmann/indico,OmeGak/indico