Initialize a variable in acct_gather_energy/rapl plugin
Initialize variable to avoid warning
Fix possible NULL pointer usage in plugstack logic

Never observed, but "clang" tool reports these as possible failures
Minor problems reported by clang tool

Some uninitialized variables, possible NULL pointers, etc.
None of these have been seen in practice that we know of, but
these changes will bulletproof the code