Check that where_id property exists

Avoid Undefined property warning if where_id is not set on device