Fix double free corruption in Costmap2D

Fix double free using after https://github.com/ros-planning/navigation/pull/266 by setting `costmap_` to `NULL` after deleting it.