Fixed issue when starting monitor without replica sets.