Add workaround for empty regex into regex parser

Fix #49