The influence of x-ray pulse length on space-charge effects in optical pump/x-ray probe photoemission