HTML import: fix importing of inlined images (related: fdo#50763)

Regression from 3914a711060341345f15b83656457f90095f32d6

Change-Id: I0523d2b07dc33c74caa711cf7aae274c935f8eed