Fixed JSON coder when loading NULL from DB