Slovenia benefit from keeper error to record historic victory