added check for project media payload before adding as a page