This is called the "candy foot" and is normal. You can trim off excess caramel if you want or while the caramel is still warm go ahead and push it back up onto the apple.