Fixed issue in null reference error when downcasting the map widgets.