fix wp_query reference in author.php

I had trouble with author.php because the if statement always evaluated to false. I couldn't find/am not aware of any associated tests to update.