added checking to make sure the new process name is not 'undefined'
added checking to make sure the new
process name is not 'undefined'

arcusfelis/wrangler,bsmr-erlang/wrangler,andrzejsliwa/wrangler,prowessproject/wrangler,arcusfelis/wrangler,tdb/wrangler