But of course this is perhaps not the best idea.
On my site I map a field from joomla user to eventbooking last_name.
But I think that the mapping happens before this check in the base.php, so it is overwritten.
The code you wrote earlier does not look right to me. Maybe you can submit a support ticket sending us super user account of your site so that I can check your setup before we can discuss further about this ?