fix handling optional third xml rpc response argument (fix #335)

@tfoote @wjwwood Please review.