Added module loading check if external module class ancestor is found to avoid fatal error