Fixed bug allowing nil values to be returned from select: