Explicitly check for index page (bug 1107700)

Do not merge yet as there's a spartacus change needed for this.