Groupbox does not open correctly if one or more of it's children have visibility="false". The problem seems to be caused because of visible="false" components are not rendered at the Client, which is not taken into account by Groupbox.
Steps to reproduce:
1) open browser inspector first
2) try to open the groupbox for the very first time
3) uncaught exception occurs