Fix index generation for api-ref

api-ref does not have an index.html file, adjust for this.

Change-Id: I9cbd3cdaab75f53919d1191d8757dc00abaff09a