Fix for JENKINS-16657

Added null-check for `action` in `isBuildClaimed`
Merge pull request #19 from digal/master

Fix for JENKINS-16657