Sanity checks added to recent Powerline merge.

While doubtlessly overkill, such checks should prevent unwanted crisis...
going forward. In any case, a little prudency never hurt. (That much, anyway!)