Don't send zero width rects to monitor_create_chain
Put geometry checks after width/height adjust
Add omitted variable declaration