Fixed #5732 -- Catch all possible errors when importing a URLConf file. This