Fixed NPE when no lastSuccessfulBuild is available.
Merge pull request #1 from ANPez/master

Fixed NPE when lastSuccessfulBuild is not available.