Fix for segfaults

Add check for data substring == empty for ASYNC operations
i.e
1:SQL:
2:SQL: