Added NPE render failsafe
Added extra logging for invalid packets