Placed calls to formatIds in try/catch blocks.
Merge pull request #2 from rob-odil/master

Placed calls to formatIds in try/catch blocks.