Fixed issue #36. Fix exception when empty available resolutions ArrayList.