Fix for saving imported data, needed to check for null pointer to avoid error

Reviewer: Tiff Go (post commit)

Issue: GCP-9689