Fix crash when no method missing can be found

Fixes #2546
Add spec for using a class allocated with Class.allocate