Made getMaxLag() skip checking the master DB

Change-Id: I81a9102570bf9a45af56f31d04e3a0f2be72b919
Merge "Made getMaxLag() skip checking the master DB"