fixing bug #5614
check if field is mandarory before adding javascript check
bug #5614 :   Fix the build of the URI of publications related by a delayed notification
Merge branch 'bug-5614' into core-5.14.x