Disable live-reload middleware if live-reload is disabled. Fixes #745