Added a check whether changing the primary_key mapping points to an existing property. Still raises an exception but now provides a useful message.