Correctly check if checkpoint undelete is allowed.