Libs/Packets: Fix for new API and added explicit nil return