Fix a crash when there is no such path for icons directory