Fix for Issue #778 as suggested by elemoine
Fix for Issue #778 as suggested by elemoine

PublicStuff/openlayers,kartverket/openlayers,sanak/ol2,owenmead/openlayers,colllin/openlayers,colllin/openlayers,pvalsecc/openlayers,pgiraud/openlayers,boundlessgeo/openlayers,ahocevar/ol2,adh1365/openlayers,PetrDlouhy/openlayers,georchestra/openlayers,v5analytics/openlayers,avinet/openlayers,wet-boew/openlayers,altamiracorp/openlayers,ahocevar/ol2,owenmead/openlayers,elbakai/openlayers,owenmead/openlayers,sbrunner/openlayers,avinet/openlayers,Gnafu/openlayers,PetrDlouhy/openlayers,Gnafu/openlayers,sanak/ol2,PublicStuff/openlayers,elbakai/openlayers,kartverket/openlayers,v5analytics/openlayers,pvalsecc/openlayers,shevawen/openlayers,PublicStuff/openlayers,PublicStuff/openlayers,adh1365/openlayers,openlayers/ol2,shevawen/openlayers,wet-boew/openlayers,boundlessgeo/openlayers,wet-boew/openlayers,PetrDlouhy/openlayers,colllin/openlayers,v5analytics/openlayers,boundlessgeo/openlayers,wet-boew/openlayers,tschaub/openlayers-raster,sbrunner/openlayers,openlayers/ol2,dracic/openlayers,shevawen/openlayers,altamiracorp/openlayers,dracic/openlayers,shevawen/openlayers,georchestra/openlayers,pvalsecc/openlayers,dracic/openlayers,colllin/openlayers,kartverket/openlayers,PetrDlouhy/openlayers,Gnafu/openlayers,avinet/openlayers,pvalsecc/openlayers,altamiracorp/openlayers,owenmead/openlayers,elbakai/openlayers,altamiracorp/openlayers,dracic/openlayers,adh1365/openlayers,openlayers/ol2,pgiraud/openlayers,ahocevar/ol2,avinet/openlayers,sanak/ol2,tschaub/openlayers-raster,Gnafu/openlayers,kartverket/openlayers,sanak/ol2,tschaub/openlayers-raster,adh1365/openlayers,georchestra/openlayers,sbrunner/openlayers,boundlessgeo/openlayers,openlayers/ol2,v5analytics/openlayers,pgiraud/openlayers,elbakai/openlayers,sbrunner/openlayers,pgiraud/openlayers