Update: extract patient results and set expected values on bundle import

Updated the extracting methods for parsing results to handle nil case and thereby fix rake tests.

Re-wrote measure population selection to not loop over every index, but just the specified one for the current result.

Manual testing showed a drop from 127s to 114s for the <code>set_expected_values()</code> method, so there might still be more room for performance improvements...