Fix dependencies for wikibase.ApiBasedValueFormatter

Change-Id: Iecc78e867f63af077fcff6d45fa0e45ac80533a4
(cherry picked from commit fc3e6c5aae0b0647a4ee6c4d08b9d66da8aabba4)