MDL-40631: Prevent students from submitting empty assignments.

Conflicts:

	mod/assign/locallib.php
	mod/assign/tests/locallib_test.php