Avoids idetools crash on nil parameters.
Merge pull request #1097 from gradha/pr_avoid_idetools_crash

Avoid idetools crash on nil parameters.