Fixed a small bug: itemSelector was initialized to '', but tested against null

TBR: @terrylucas