Avoiding NullPointerException if a licence plate does not exist