Fix NPE with param without type.