Update form.html.twig

{% if data.type is defined and data.type is not empty %}

Without check if defined web profiler crash to report form data on line 423.

check the topic https://github.com/symfony/symfony/issues/10054