Fix small realtime map rendering regressions with QGIS 2 api