Fix duplicates in asset import
Fix duplicates in asset import

It relied on the unique constraint from the database, but it doesn't apply if
parent_id is null. So it checks the existence of the asset before inserting it.

cgwire/zou