Guard against null externalReference.