Platform.js parse call returns null when parsing fails