Prevent undefined index for  in pending payments. #2432