Fix Issue 5753 - Disallow map with void function.

https://d.puremagic.com/issues/show_bug.cgi?id=5753