Fixed js error when zero work packages are returned.