Parser detects unexpected end of files.

When a dotconf file has an opened section without a closing brace, the p_error method gets a None token.

This patch detects when a None token is given and raise a ParsingError instead of a AttributeError.