The function hideSelectionFromResult was tested against undefined as a property and not as a function
Merge pull request #2065 from jdecuyper/hideSelectionFromResult-fix

Fix for hideSelectionFromResult
Allow to display item created by createSearchChoice at the end of the list
ref #595
Merge pull request #2070 from jeanmonod/master

Allow to display item created by createSearchChoice at the end of the dropdown