WebSubmit: more robust JavaScript check
- Before running a custom JavaScript function on an element, check if the element is not undefined. (PR #1741)
Signed-off-by: Nikolaos Kasioumis <nikolaos.kasioumis@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>