Fixes undefined index: SERVER_PORT notices.