Handle null blobs properly in sqlite, closes #1306