Matlab does not render text fields with a NaN in position-vector. matlab2tikz does now the same (priorly it produced uncompilable tex code where pgfplot got NaNs where it could not handle it).
Merge pull request #279 from Aikhjarto/master

matlab2tikz produced uncompilable code if NaN was used in a text field as position