skipping null result, when the item should not be displayed

adding $result->class to null creates StdClass silently, yields error
later in the code
Merge pull request #3 from petrusek/hiddenfix

skipping null result, when the item should not be displayed