Fix bug where method name in defined? might be a stub method