Fix null pointer error in ResourceTranslator, basic functionality for ReverseResourceTranslator, working test for setErrorPage