Only use catalog_product_flat indexer if flat products are enabled

Every time the flat catalog index was rebuild, even if it is not activated in the backend