Minor bugfix in select.php

When adding orphaned values, do not add empty string.