Well thank you all for being my rubber duck.
Instead of removing the book element from the mapping, I removed the book attribute which was redundant anyway.
I suppose this problem still exists in Mendix, but it isn't my problem anymore. :) I don't suppose it happens a lot anyway.