Added missing dependencies check during modules enabling/disabling.