Fixed bug in getArgNames for functions with no args