Finish fixing build when Origin is disabled.
Differential Revision: https://phabricator.kde.org/D15461