Better fix for bug #8679

Thanks to Enrico, who noticed that the previous fix did not take into account
the case of nonempty length argument + the next line beginning with [.
Now the parsing is exactly the inverse of InsetMathGrid::eolString().
Merge remote-tracking branch 'github/build-bot-master' into bleeding-edge-master
2014.11.26-22.00