update removePD def

remove PD was leaving an empty resource box in certain instances. Now
it deletes the resource box if it's empty after deleting the LI with
the PD link.