Update Task.php
Merge pull request #223 from giorgiosironi/master

Setting location on exceptions only if present