Add getElement method, make it not throw an exception when it tries to re-register a method.