Fix NPE (when no previous value)

Signed-off-by: L5D <L5D@L5D-PC>
Merge pull request #585 from L5D/master

Fix NPE (when no previous value)