Make sure not to call select with wrong arguments.
This should be covered by checking the select return value, but I'm not
doing it this way to avoid any regression.