As mentioned in 8aa66b68 the loading did not work. By filling in all parameters for the KParts constructor it works properly.
By having an explicit assertion one gets an actually useful error instead of a confusing stacktrace.
@waqar @mreeves