Add null check on dissmiss dialog fragment