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