Fixed bug when language element patterns matched the empty string.