- Corrected setHookWidget to preserve undefined/null values instead of converting them to string literals. Fixes #496