Fixed an exception in the auto-expanding code if no request was specified