The undocumented \pgfplotsplotfromname was useful in the solution of this warning:
Its actually a workaround for the warnings that appear when using a named plot from pgfplots in combination with externalization and hyperref.
I am looking for a better solution.