The word gestern 'yesterday' is generally construed as an adverb, which means it cannot be taken as the subject in this sentence.
Since subjects are typically marked by the nominative case in German (the fourth criterion above), one can argue that this sentence lacks a subject, for the relevant verb argument appears in the dative case, not in the nominative.