Fixed bg segfault. Looks for empty joblist.