Bugfix: prevent null pointer exception if no result is found