Fix DbNull.Value sometimes dosen't get converted to null