Handle data result could be undefined case.