Add "if check" so that inflection plays nice with angularjs when using variables that resolve from promises.

Fixes https://github.com/dreamerslab/node.inflection/issues/27