Allow dust.helpers.tap on dust body functions

Calling dust.helpers.tap on dust body functions does not work because of https://github.com/linkedin/dustjs/issues/423

This changes implementation of tap helper not to rely on isFunction flag set in dust core.