Trigger 'RestInPeace' hook in api.php and wikia.php as well (backported to the release)

#2735 backported

@michalroszka / @prein