While this bug is a little annoying it is actually very easy to circumvent. Instead of writing “where e.skills is not empty” we can use “where size(e.skills) = 0”
This works as expected.
(@Robin Sander already hinted at this solution)