Update v1.2 of the subfiles package makes it compatible with class files and packages that modify the document command (like the revtex4-1 class). Older versions generated errors in such situations.