Fix error checking issue if result is nil (not blank but nil)