If a user uses the apa6 template, but the rmd does not contain any cite keys (e.g., if R and its packages are not cited), knitting fails with a rather cryptic error message (empty item in latex). It would be great to handle this edge case by either issuing a meaningful warning/error or removing the reference section.