this should fix cases where other plugins use `apply_filters('the_content')` and there is no series data sent through.  However, what needs tested is to see if this removes the ability to remove posts from series.  If so, we'll need to adjust the fix.
[needs testing: 114]
fix notice
cleaned up things a bit and replaced if statements with a switch statement
made sure variables are defined.
[completed: 115]