Affects Version/s: 7.0.X, 7.1.X, Master
Component/s: Dynamic Data Mapping
portletRequest and portletResponse may be null for certain portlets like Language selection.
Steps to reproduce:
1. Use Liferay 7.0
2. Create a Theme that uses a language selector in portal_normal.ftl (or use the attached one):
3. Deploy the theme and set a page to use it.
Actual Result: The language selector is missing and a NullPointerException happens in the logs
Expected Result: Language selector still appears