fix for function pointers which return void

This corner case was discoverd by @jamescasbon for jamescasbon/xdress-rect#1