Added another null check in scanStack
Merge pull request #8 from PlasmaPower/master

If you'd be able to build this and get a link available I'd appreciate it - not something I can do from my phone in France