Handle nil input to parser correctly