fix: "/assets/?invalid=true" raises internal server error

Found no way to write a unit or integration test for AssetsFilter in reasonable time.