HLR output in case of error

HLR API output was null in case of an error.

What do you think about this update?