check to see if column name is set before returning it in payment history table

Signed-off-by: Benjamin Rojas <benjamin@reality66.com>