Avoid crash when giving negative size to MenuBar