It looks like you didn't leave it there, but you commented it out.

The check is to ensure that SIP and/or distortion is actually being applied on top of the core WCS.  Was this broken by these changes?  If so, we should investigate why, rather than disabling the assertion.