opsworks status should not crash on an empty query

When supplying the name of an app that does not exist the status command now crashes. Moving the compact!  before the sort! fixes the problem.

On a side note I wish there was some spec coverage on the project :)