fix Issue 11226 - Problems with typeof(null) and const