Correct an error introduced in commit 4f6fc6ec. The error causes a crash when trying to preview a mimetype that no ReadOnlyPart is available for.