Fixed bug in mediapackage.getElements