Fix for stack overflow on non-static inner classes, attempt #2

Fix for stack overflow on non-static inner classes issue discovered by Antony Stubbs.

Travis build is successful
https://travis-ci.org/daivanov/podam/builds/16794925