The filters before and after the demodulator (the envelope detector) do different things.
The filter before the detector is there to make sure that you are detecting the correct carrier frequency. It typically has a band pass filter rather than just a high pass filter as your example shows.
Here is a modulated carrier signal:
That is a 16kHz carrier ...