Fixed a crash caused by urls consisting of a single space