Fixed another null pointer

fixed null pointer from trying to compare prefix to jail prefix.without sanitizing possible nulls.