Validates that the provided templateUrl is valid