On absolute continuity of invariant measures associated with a piecewise-deterministic Markov process with random switching between flows