Merge pull request #350 from ENCODE-DCC/fix-search

Corrected error if replicate array is empty.
Merging master.