return 0 (instead of nil) when jenkins package is not installed

implement fix recommended by @pgr0ss for issue #1