Fixing exception when controller is not an array (for exemple, a Closure)
Merge pull request #1 from antoiner90/master

Fixing exception when controller is not an array