I was amused by this when reading the source. Here’s the function that loads the replacement.
https://github.com/CompVis/stable-diffusion/blob/69ae4b35e0a...
It looks like removing line 309 of the same file would disable the check, but I haven’t tried it.