Add `try/catch` clauses around a couple Object.*() functions

These have a possibility of throwing an Error if given funky host objects in old IEs.