[Fixes #109] Nested resources with undefined base urls.

Fixes `undefined method '[]' for nil:NilClass` with nested resources enabled and an undefined base url for the controller.