Fixed error caused by no data being returned.