fixed #4229 Javascript error in SQL edit window

Signed-off-by: Viduranga Wijesooriya <vpowerrc@gmail.com>
Merge pull request #857 from vpowerrc/bug-#4229

fixed #4229 Javascript error in SQL edit window
Translated using Weblate (German)

Currently translated at 94.6% (2602 of 2749)
Translated using Weblate (Italian)

Currently translated at 89.5% (2461 of 2749)
Translated using Weblate (Persian)

Currently translated at 34.6% (953 of 2749)
Translated using Weblate (Portuguese)

Currently translated at 56.1% (1544 of 2749)
Merge remote-tracking branch 'origin/QA_4_1' into QA_4_1
Merge commit '142b64581c882f866c99f897793b559b36869b3d'
Merge remote-tracking branch 'origin/QA_4_1'