Report error when mounting to an empty element