Split-mongo block uniqueness constraint [LMS-11364]

Added lines to `wsgi.py` to prevent contracts from executing when running as a webserver.