We are still using the code above with no issues. Have you recenly upgraded your instance?