Handle cases where result is null

Was getting an error when I added a background element,
as the result for the steps inside the element was.