MB-10396. Add existing view indexes to non-usuable indexes
Also fix error message when no primary indexes are found

Change-Id: I95f20092c833d0999635f7c1652a6238598fd02d