Fix issue with None objects passed to utils.update.public_fields

Fix utils.db_queries issue