Invalid expressions with an ultimate compiled pattern length of 0 were not taken into account and caused a segfault while trying to fill in the good suffix table. Address this by making sure we NULL out the BMG properties if the pattern is invalid.
PR: 194823