Correctly handle setting nonexistent properties