Check beforeRevision, if afterRevisions is not available

(the case of removed files)