fix handling of null values for feature id in sqlite/postgis input - closes #1817