Fix NULL dereference when function name is not specified

It was possible to type `function ""; end`, and this caused fish to
crash because of NULL pointer.