Fixes #209. Added support for empty-base URLs