Added a safe guard against null entities on skill use