Fixes for API v2 nested routes

https://github.com/theforeman/foreman/pull/1068