CI: Fixes to the patterns code checks
Fixing couple of small errors in the CI (detected in https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=5707):
- When the `patterns` (grep unwanted patterns) step fails, the installation of flake8... is cancelled
- When a file has a blank line with whitespaces, the reported error is not clear
