Adding exception handling to prevent errors in the Storyboard designer