Fixed crash when there are no ignore patterns.