Fixed slave check when the job type is not specified.

Change-Id: I6bee31d149330ead537b9deebb57294f12ce9e02