Check NULL before deleting costmap