I am not sure about other EU countries, but in Germany you have the right to lie in this situation since the question was very likely illegal in the first place. There are other topics which an employer is not allowed to ask about in German. For example about pregnancy or planned pregnancy. You always have the right to lie when you get one of these questions.