Fix for #285: getMethod() is throws exception when you give it an attribute name