Fix NPE in few places
Fix exceptions in querypurger
Update failed status through setter method
Merge pull request #82 from InMobi/npes

Fix NPE in few places