[Issue:227] Parameters not passed down when running GetFeatureInfo

This pull request contains the fix for #227.
If layers got set to null, this throws an exception.  The "One more chance"  block a little further on would have fixed this but you've moved this before it.  This is causing the WMS GetCapabilities to fail.