The problem is that your initial value for the searchQuery observable is set to undefined. You either have to check if it is defined and then call toLowerCase() or set a default value of '' for it. Just like I did in the codeopen demo.
self.searchQuery = ko.observable('');