[fix] Don't crash on missing hasOwnProperty