A Health Board has been fined following the death of a vulnerable patient who left a hospital ward unnoticed through an unsecured door.