title: tabClose method is not called for the first tab from tabview primefaces
body: <p>I use primefaces version 5.3 and jsf version 2.2.6.</p>
  
  <p>I implemented a tabClose ajax event for a tabview, but the problem is that for the first tab, the tabClose event isn't triggered and the method remove isn't called, for all the other tabs, it is and it works and I can't understand why.
  Additionally, if I try to close the first tab, all the tabs are closed.</p>
  
  <p>The code looks like this:</p>
  
  <pre><code>&lt;p:tabView id="tabs" activeIndex="#{mainPage.index}"&gt;
          &lt;p:ajax event="tabClose" listener="#{mainPage.remove}" update="formTabs" /&gt;
          &lt;p:ajax event="tabChange" listener="#{mainPage.changeTab}" update="formTabs" /&gt;
  
          &lt;c:forEach items="#{mainPage.tabs}" var="tab" varStatus="loop"&gt;
              &lt;p:tab title="#{tab.title}" closable="true"&gt;
                  &lt;f:subview id="tab#{loop.index}"&gt;
                  &lt;ui:debug /&gt;
                      &lt;ui:include src="#{tab.url}"&gt;
                          &lt;ui:param name="focusedTab" value="#{tab.id}" /&gt;
                      &lt;/ui:include&gt;
                  &lt;/f:subview&gt;
              &lt;/p:tab&gt;
          &lt;/c:forEach&gt;
      &lt;/p:tabView&gt;
  </code></pre>
  
  <p>Does anybody know what the cause could be?</p>