add try/catch to getContentForIcon