Fix #494: Missing imports fail properly