utils/touchpad: Catch division by zero if resolution is 0
If the touchpad is not properly supported, then the kernel might be
reporting a resolution of 0. Catch this and return a size of -1 to
indicate the error instead of failing with a division by zero.