Fixed bug. If we got None from the RE we need to append current line into buffer anyway. Otherwise you will lost this line.