Added another validation check in case trigger_type is None
Added another validation check in case trigger_type is None

While testing something, I accidentally used 'Item Test_Switch_1" and got a strange error, since this was not being handled.
steve-bate/openhab2-jython