Fixing an issue if application.config.relative_url_root is not defined.