Fix for #3. (segfault on malformed .desktop files)