throw an error when there's a reference to a gapfill which doesn't exist

fixes #227