Only cast ProjectileSource to an Entity if it is one. Fixes cast errors due to change in CB #2998 (see BUKKIT-1156 + BUKKIT-1038