Fix background migrations failing with unused replication slot
When there is an unused replication slot, the replication lag function will return a nil value, resulting in "NoMethodError: undefined method `>=' for nil:NilClass" error. We now just ignore these nil values.
Edited by Stan Hu