VG-1907: Added check for No Spatial reference

Check for no analysis error or no spatial reference and provide a better
error message.