Teenager Adam Wharton’s first senior goal helped high-flying Blackburn to a battling 2-1 win over Birmingham.