Fixing segfault of mewl.

Please apply this patch to prevent a segfault of mewl.

In nextfield(), should set *prev_beg even if p is NULL.