Justin Bieber looked happy after walking out of court in Santa Monica following his egg-throwing conviction