Fixes an issue in the mongo handler where the wrong option was used for expiry checks