Not passed variable in JavaScript is undefined, not null

Fixes #961
Merge branch 'master' of github.com:forkcms/forkcms