Fixed error shown when select has no options