Fix E_WARNING error when asset has a parent assigned.