[parser] disallow empty `var` and `try` without `catch` (closes #3699)