Fix other memory_limit checks when it is disabled.