bigfix: do not try to read object properties if object undefined