Fixed two bugs with robot components.

1. They could be broken but still powered.
2. Melee damage didn't work at all.