Fix Regex to nothing matching in docs

If a match does not succeed the result of `match(r"^\s*(?:#|$)", line)` is already `nothing` so we cannot access `m.match`.