avoid strict purity inference by passing void pointer
Merge pull request #753 from rainers/workaround_bug11461

Workaround 11461: avoid strong purity inference by passing null pointer to onOutOfMemoryError