GeoNode/geonode — pull request #804 by cspanring (2013-03-05 21:01:23+00:00)
Title: Prevents orphaned maplayers from breaking map detail views

Only a workaround, orphaned maplayers (=result from cleardeadlayers) should be properly removed from the system.