Martim Fernandes' freak own goal gifted Nottingham Forest a route to a first European semi-final in over 40 years.