Drop an extra early return in mediawiki.action.history
This shouldn't be needed as iterating over an empty array is no-op anyway.
Also 'use strict' and ES6 let/const.
Change-Id: I5f1073dbcfcc42d8e10fec191b35d7aca293d104