fixed debug helper input validation

fixes https://github.com/opentechinstitute/luci-commotion/issues/418