Solves BUG PIMCORE-2101 (http://www.pimcore.org/issues/browse/PIMCORE-2101)