Prevent fatal error while running unit tests

If any of the methods returning revision objects instead return null the test
will fatal.  This doesn't fix the underlying bug that caused a fatal, but allows
phpunit to finish running.

Change-Id: I8e507009d0470b3c2999a6a4d039fa57a657f324
Merge "Prevent fatal error while running unit tests"