Fixing paste on selectbox

Fixing paste action with a valid text when the allowInvalidText is set to false.