In the dialog layout code, fixed the button padding for the bug #22379

This concerns https://gna.org/bugs/index.php?22379 (Top of buttons in statistics dialog cut off)

There was no check if the "text_and_image_height" variable was equal to zero. If so, the buttons were placed 6 units too high.