improved error handling for NULL pk values when importing data

when doing an insert with a NULL value the analyzer already throws an exception