RefSanityChecks: make it throw JsonReferenceError

More suited than ValidationConfigurationError.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>