fixed a bug with generator looping over results infinitely
fixed a bug with generator looping over results infinitely

T2DREAM/t2dream-portal,ENCODE-DCC/snovault,ENCODE-DCC/snovault,T2DREAM/t2dream-portal,ENCODE-DCC/snovault,ENCODE-DCC/snovault,ENCODE-DCC/encoded,T2DREAM/t2dream-portal,T2DREAM/t2dream-portal,ENCODE-DCC/snovault,ENCODE-DCC/encoded,ENCODE-DCC/encoded,ENCODE-DCC/encoded