FALCON-917. Fix corner cases while getting job id during instance status. Contributed by Suhas Vasu