Fix NPE in /back when no previous location exists