FlaggedElement: Fix PHP notice

Change-Id: Ic61a698982030c7a1a9bc6bb3f7fd1a8ad2674db