Fixed a NPE that would occur if a library has no base URL.