[wiki] Fixes a 500 when requesting to compare two invalid revisions

Fixes #5