Bug 912469 - Use Object.keys for safer iteration. r=gandalf