Index action silences `?` output when not required

There is no reason it should be there if no query_parameters were passed in. A simple Array#compact should suffice here.