Fixed issue which makes a dartanalyzer warning

This pull request:
* Closes issue #12
* Bumps the version to 0.6.0+1

@dpeek after this is merged can you please update the pub package.
@kevmoo Here is the fix for your bug.