Uses ModuleStoreEnum in is_xblock_visible_to_students

This function was previously merged using the old REVISION_OPTION_PUBLISHED_ONLY constant instead of the newer ModuleStoreEnum values.

@cahrens @andy-armstrong