Paragraphs no longer have their own author, check the parent entity instead.
public function getOwnerId() {
$parent = $this
->getParentEntity();
if ($parent instanceof EntityOwnerInterface) {
return $parent
->getOwnerId();
}
else {
return NULL;
}
}