fix Issue 11226 - Problems with typeof(null) and const
Merge pull request #2703 from 9rnsr/fix11226

Issue 11226 - Problems with typeof(null) and const