Bernstein-Moser-type results for nonlocal minimal graphs