move integer check in net_wm_pid to the constructor

if that fails, raise a QtileError