When using the below params with wbeditentity
'site' => 'enwiki', 'title' => 'Berlin' , 'data' => '{"labels":{"de":{"site":"pt","title":"TestString"}}}'
an undefined index of 'language' is thrown instead of a usage exception
Version: master
Severity: minor