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
Merge pull request #1467 from tashanta/master

Fix form creation url when object id is 0 (Issue #1466)