Check if the cause is null before returning.