Invalidate memoization of boilerplate

Fixes bug introduced on the cordova-hcp branch. Fixes #2498