Move the access to the stream fragment data after the check if the fragment exists to prevent a segfault