More palette index checks to avoid getting into a derpy state.
Merge branch 'master' of github.com:MightyPirates/OpenComputers into MC1.7