You may have attached a click event with some behaviour to this invisible button.
Here is a demo of this invisible button and you may see that clicking it won’t cause a crash.

If you want a header to be without buttons you have two options:
1) use your approach and set the headerButtons to [”] and using CSS set the display property of the .smart–button to none
!Note that the button’s class name has two dashes ‘smart–button’

2) The second one is to hide the ‘smart-buttons-container’ of the panel that you want to be without buttons.
Here is a demo: https://codepen.io/svetoslavjqwidgets/pen/RwYJYgJ

I hope this helps resolve the problem!

Best Regards,
Svetoslav Borislavov

Smart UI Team