Avoid error if there is no 'buttons' template variable