Test if identifier is null or not in twig templates, to determine if we have to generate an edit/create form

Fix Issue #1466 create/update routing problem in form creation, when id is 0