check for empty message
correct template var name
minor fixes
correct deletion of post and the setting of 'last post' var for topic