add support for null lexers

requested by @halosghost