Check beforeRevision, if afterRevisions is not available

(the case of removed files)
Merge pull request #40 from klikh/check_before_revision

Check beforeRevision, if afterRevisions is not available