Update BaseCastManager.java

Preventing Activity leak if it was passed as Context argument