You can either modify the SQL to not return nulls, or put a condition into your code, I don't see other option.