Fix predicate for WeakMap in FOAMmodels.
Merge branch 'master' of https://github.com/foam-framework/foam