TGA Loader could crash if req_comp==0

TGA Loader used req_comp in a way that could make it crash, e.g. if
req_comp was set to 0 the internal malloc operation would allocate 0
bytes and subsequent operations on the allocated buffer could cause bad
things to happen.