Reset error pointer to NULL when we are about to use it again.