Fix crash for sites without a baseurl
Fix crash for sites without a baseurl

If `config[‘baseurl’]` is `nil` an exception would be thrown. This
checks for `nil` and returns an empty string instead.

gabriel-john/utterson,gabriel-john/utterson