Fixed some null reference errors if the fields were not populated in Sitecore.
Merge branch 'hotfix/Null_reference_errors'