Fixed a couple NullPointerExceptions that can occur when running the
linker on an incomplete model.