Avoids raising exceptions in tryInsertID.