Check sample loading error in format loaders

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>