Yeah, I agree that would be the proper process :) , but right now that is not happening, so the options are:
- Check if we are in edit mode before calling .checkInputs()
- Modify .checkInputs function so it only does stuff when we are on edit mode
- Leave this like it is, and open a following bug for the edit-mode check

My favourite one is to do the modifications on this bug, but I understand that fixes should only be focused on, well, fixing specific bug. Still, I usually like to work a little more to make better code, even if that means modifying stuff outside the bug scope.

But again, I understand that might not be the correct way. Maybe @borjasalguero, @arcturus or @rwldrn have some ideas in here.