ath9k: add a missing null pointer check and some further cleanup