Fix a crash that would occur in the resource handler if the amount of bytes we reported did not equal the size of the slice returned.
Fix a crash in download handler if we called 'full_path' and it was null.