fix the 'none' value in puppet::agent::method