fix wx assertion of invalid icon