Fixed creation of "appError" json object with nullable url (#8942)

Change-Id: I401d4df4cc089ea1f0988dfd670b0823fc06f8a4