Ecdc 3307 fix tdct handle empty array
Created by: hurvan
I made a minor change to try to catch the empty arrays that get turned into NoneTypes. I also added a test to verify this.
I'm just a little unsure if returning None, None is enough or if we need to do more in order not to forward the empty array.