mod_base: fix js error in livevalidation.

(cherry picked from commit 7be4848b2bb995df83e955905bf1d2b62441f1de)