Check whether cause is null before trying to get the response message