JsonLoader: use .getResource(), then .openStream() in .fromResource()

This allows to separate the test for a non existent resource.