weston-launch: move function calls out of assert()