5319 added check for subsit on delete theme button