A negative cycle only gives infinite score if it is on some path connecting node to node N. If the cycle is unreachable or does not lead to N, it does not help. You need to check two things:
Is there a negative cycle?
Is it reachable starting at AND can it reach N? Both conditions must hold for the answer to be . Check reachability using BFS on the original and reversed graphs.