This was first reported back in January of 2018 and it is still not fixed although the original bug report was closed.

The configuration property "hideHeaders" does not work if the grid is empty.

I have worked around it with the following override but it may not work in some situations:

onRender: function () {    
    const headerContainer = this.getHeaderContainer();
    if (this._hideHeaders) {
            visibility: 'hidden'