Only use maintenance mode if a plugin or theme needs updating

Fixes #491