Layoffs are fairly regular occurrences, and don't necessarily represent the end of a company. In fact, even if it wasn't just 5% of their workforce, and not mostly Nokia staff, it wouldn't be a concern — its just business as usual.
Companies often experience a raise in share-price after a layoff.