Fix a regression in VMenuBar.getSubpartElement (#14879).

A change done in an earlier patch set
(https://dev.vaadin.com/review/#/c/5283/) caused a test failure with
Internet Explorer 8.

Change-Id: I8159135ab7ec4b73682e90daf393b879bf587930