The main reason why Poland international Robert Lewandowski's goal for Barcelona against Real Sociedad on Sunday night was ruled out offside has emerged.