Mobile widget: Correctly declare dependency on widget factory

Fixes #6829