Fixes: #2507 import_complete_ldif error handling is broken