Fix #207. Ignore non-functions in promise.ensure()