[wafbuild] Changed dict indexing to dict.get