Fixed a bug in UrlBar that caused segmentation fault.

Reviewed by Roland Takacs.