_insert_empty, thanks Alan
uri not None, issue 1336, thanks Anthony