Fixed error on empty string

Some svg generated errors and made the whole site freezing in google chrome.