Fix worked great for me. I had customized some subsites quite a bit and then used Powershell to copy them and got that stupid error. Prevented me from checking anything in unless i was in the library view. Applied the fix and i was able to check in from the home page.
Thanks!