Fixed BZ#1029261 - NPE when building books with a revision parameter.