Raise exception for network delete if a subnet tied to that network
is not deleted.

Fixes bug CSCuj25516
(cherry picked from commit fea30d84a0d343434ec2a4c8c9f10aa975194f8d)