Handle UrlGenerationError as an application exception rather than a
404, even though it subclasses RoutingError. refs #3047
Fix crash on unexpected case of a collection whose owner_uuid is not root.
closes #3047
Remove spurious puts. refs #2884