Fix potential NullPointerExceptions in entity managers
Merge pull request #246 from bbiletch/sbl-dev

Move end date checking to server.  Fixes crashing bug.
Checked out by Ben Korza
benkorza
Merge branch 'sbl-dev' of git://github.com/struct-by-lightning/wpi-suite into sbl-dev