Added NPE check for command Played.