fix export of empty HTML blocks, fixes #304