Protect against crash report exception, check rect is valid size