MDL-43908 mod_assign: Prevent notifications for unavailable assignments

Signed-off-by: Tony Butler <tonyjbutler@gmail.com>

Conflicts:
	mod/assign/locallib.php