Handle nil case from TaskByGuid

[#82593712]

Signed-off-by: Eric Malm <emalm@pivotal.io>