added check to avoid attempt at referencing type and ID from URL if url is not present or incorrect
added check to avoid attempt at referencing type and ID from URL if url is not present or incorrect

intervention-engine/fhir