fix(getFunctionNames): handle non-string input