Improve logic to return TIMEOUT when not hasData && timeout->sec/nsec==0
Improve logic to return TIMEOUT when not hasData && timeout->sec/nsec==0

Signed-off-by: jwang <fd1ee87cbf1cb14357ce9925a38414c16dc86417@intel.com>

jwang11/rmw_fastrtps,jwang11/rmw_fastrtps