Merge "Fix connected apps for headless (was previously always checking allowed apps on user 0)." into udc-dev