Issue #1315366 by minorOffense: Fixed incomplete cleanup of behaviors when #access is set to false on a field