added chack for null revision

this prevents a fatal when the edit is a null revision (no content changes)