fix rails controller specs with undefined controller instance

this fixes #135

sorry for no tests, but this hardly touches production usage
and test for test running seems to be too complex ;)

P.S. Happy birthday, @gazay