Smith avoids NRL ban over Mahoney slap