Flex reports: bugfix for flex report

where user enters parameters that result in no allocations being
selected.
Merge branch 'master' into rails_4_0