Catch exception when trying to remove an index which does not exist.