[fixes]
- fix usage of null/undefined
- fixed typo in SECommand constructor