Fix patch to not raise error on duplicated index

Error appeared during update from 1.5.4 to 1.6.0 on PostgreSQL