Return empty result if query doesn't have any data
Return empty result if query doesn't have any data

Current request 'relate' will return a array with related key but
nothing else, if called to match value with no data. This will result
in error to models extending base model.

This fix skip the 'belong_to' and 'has_many' call if no data was found.

jamierumbelow/codeigniter-base-model,nelson6e65/codeigniter-base-model,manozdebnath/codeigniter-base-model,rakesh-mohanta/codeigniter-base-model,sergomet/codeigniter-base-model,nguyenanhnhan/codeigniter-base-model,jahanzaibbahadur/codeigniter-base-model,marciocamello/codeigniter-base-model,chanakaDe/codeigniter-base-model,ivantcholakov/codeigniter-base-model