Fix null dereference if address is NULL.