Bug 4969: NPE in JSONCodecFactory by attempt to find codec for a leafref