Update modal.php with related changes to restore support for rendering custom fieldsets when using JLayout 'joomla.edit.params'