Fix problems making schema invalid such as reference to non-existing file, non-existing type, etc.