Fixes profiling when no matches are found