Fix attempting removal of non-existant metatable.