Ensure slots are not already written into the capemanager

This was submitted to the old repo @zankich ask me to move it here.

Old PR https://github.com/hybridgroup/gobot-beaglebone/pull/4