Fixed crash when primary field is empty or no blob file.
Added check for empty representation.