I don't see any reason why this should not be allowed. Even if Ultimaker has a problem with this (which I doubt), you're always free to make modifications to the machine. As the machine is yours, you're also allowed to sell it.
Making machines from scratch, modifying them and selling those as modified Ultimakers would not be allowed though.