Added code and tests to check for non-existing select items from list

Fixes #92.