Add detection to see if file was patched correctly and avoid loading when patching failed
Add detection to see if file was patched correctly and avoid loading when patching failed