feat(safeApply): add a safeApply operator

Fixes #7
Merge pull request #14 from cburgdorf/safeApply

feat(safeApply): add a safeApply operator