Only set process name when not empty