fix cause of some notices in press.php

Fixes some PHP notices about possibly unset variables.