Throw warning on `wp rewrite flush` and no permalink structure

`wp rewrite flush` is successful, even when you don't have a permalink structure, and results in an empty rewrite rules option. To make this more user-friendly, let's throw a warning.