Fix compatibility with jQuery 1.9.1 for options with no 'value' property

Fix for issue #992