Second half goals from Serge Gnabry and Kingsley Coman saw off Hertha Berlin's stubborn resistance and moved Bayern Munich back to the top of the table.