Fixed bug with keys being called on None

If I try to use the Map column type in my models, save() fails because, get_del_statement is not checking to see if prev exists before calling the key function on it.

This patch fixes it and save() works as expected.