[liddrivencavity] Fix test if matplotlib is not ready Closes #960 See merge request !2352 (cherry picked from commit 79be4b10) d5de54d3 [liddrivencavity] Fix test if matplotlib is not ready