When creating or updating a database export template, the option 'Add CREATE PROCEDURE / FUNCTION / EVENT statement' resets to unselected when a template is loaded with all table data deselected.