Fix call to Flavor.get

The call to Flavor.get in the flavor detail page had
the arguments reversed.

This commit also updates the matching test so that such
an error will be caught in the future.

Change-Id: Ice018c07a60452cd778c22457c2cd491e266f72b
Closes-Bug: #1236562
Merge "Fix call to Flavor.get"