GdiPlusVisualizer: small fix in error handling