Fix Extra Buttons on Layout Edit Dialog

Fix extra buttons layout edit dialog.

Footer form buttons were being displayed even when
`$_REQUEST['request']` was set and set to one.

Checks for value before including footer buttons.