fixed issue #100 where it's possible that another class than a UIViewController will be returned
Merge pull request #101 from LeonS/master

Fixed Issue #100