Avoid calling undefined oncomplete callback.
Merge pull request #1013 from tobeytailor/parser

Small parser fix