Indeed, this seems to be a border error. There are areas in which the political border and the coastline do not match and as far as I can see there should be no 'island' in the Cadaval municipality (in the north). I remember this problem occurred in the past but I am not sure where.