empty mapfile generates exception