DB import: skip invalid SWHIDs during import
This makes DB import much more rosbut, at the price of ~15% performance
impact (which is still very much bearable, in light of recent DB import
improvements). If needed, this cost can be mitigated in the future by
pipelining SWHID validation with SQLite insertion, using either a thread or
asyncio.
Closes T2813