Fix nbrun in notebooks with non-code cells.
Added a text cell in the notebook to test run_nb.
Merge pull request #4634 from damianavila/fix_nbrun

Fix nbrun in notebooks with non-code cells.