bugfix: deal with non-contact file being opened as contact file

Change-Id: I947aae321347b347e7437625fc517d3004591979
Merge remote-tracking branch 'cm/cm-11.0' into HEAD