StudiesController: Fix case where n/power are empty strings

The empty string evaluates to true.