Correction for #12800.

As pointed out by @whiteinge, test=True should result in result=None.
Fixed the descriptions of the methods as well.

This implementation now follows the logic of file.absent().
Merge pull request #12822 from eliasp/rdp-2nd-fix

Correction for #12800.