Fixed bug where do-list-pog-fn crashes when there is an error.