Added parameter check before use params from conf in TorqueController

Added parameter type and number check before use params from conf in TorqueController.
This change will fix the bag reported in #346