throw IAE when pulse value could not be parsed to int

Change-Id: Ie8e13cb9a0afe5f55dc2d5c3c3413841fd68eb1b